<?php
	facebook_connect();
	get_facebook_user_id();
	function facebook_connect(){
	  require_once('./facebook_sdk/facebook.php');

	  $config = array(
		'appId' => '241327112610704',
		'secret' => '456a1ec9b69931f55e350d2af3252214',
	  );
	  $facebook = new Facebook($config);	
	  
	}

	function get_facebook_user_id(){
		$params = array(
			'scope' => 'read_stream, friends_likes',
			'redirect_uri' => 'http://117.17.102.203/'
		);
		
		$loginURL = $facebook->getLoginURL($params);
	}

	function get_user_id() {
		$user = $facebook->getUser();
		return $user;
	}
?>